package com.example.xmind2testcase.service;

import com.example.xmind2testcase.exportdata.TestCaseExportData;
import com.example.xmind2testcase.pojo.Testcase;
import com.example.xmind2testcase.pojo.TestplainTestcase;
import com.example.xmind2testcase.pojo.vo.CaseVo;
import com.example.xmind2testcase.vo.TestcaseVo;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public interface TestcaseManageService {

    String saveTestcase(TestcaseVo tv);

    TestcaseVo getTestcase(Long fileId);

    Integer updateTestcase(List<Testcase> testcaseList);

    Integer add2TestPlain(List<String> id,Long testPlainId,Long fileId);

    List<TestplainTestcase> getTestcasePlain(Long PlainId);

    List<TestCaseExportData> exportTestcaseExcel(List<CaseVo> testcaseVos) throws JsonProcessingException;

    ArrayList<HashMap<String, Object>> translateXmind2Testcase(Long fileID);

    void downloadXmind(long fileId, HttpServletResponse response);

    String uploadFile(MultipartFile file);

    String deleteFile(Long fileId);
}
